<?php
// +----------------------------------------------------------------------
// | Longbing [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright Chengdu longbing Technology Co., Ltd.
// +----------------------------------------------------------------------
// | Website http://longbing.org/
// +----------------------------------------------------------------------
// | Sales manager: +86-13558882532 / +86-13330887474
// | Technical support: +86-15680635005
// | After-sale service: +86-17361005938
// +----------------------------------------------------------------------

declare(strict_types=1);


$cate = sassAuth()==1?',{
                            "name": "DynamicClassify",
                            "url": "/dynamic/classify" 
                        }':'';

$dynamic = <<<DYNAMIC

{
        "path": "/dynamic",
        "component": "Layout",
        "redirect": "/dynamic/manage",
        "meta": {
            "menuName": "Dynamic",
            "icon": "icon-dongtai1",
            "subNavName": [
                {
                    "name": "DynamicManage",
                    "url": [
                        {
                            "name": "DynamicManage",
                            "url": "/dynamic/manage"
                        },
                        {
                            "name": "CommentManage",
                            "url": "/dynamic/comment"
                        },
                        {
                            "name": "DynamicClassify",
                            "url": "/dynamic/classify" 
                        }
                    ]
                },
                {
                     "name": "DynamicSet",
                     "url": [ 
                     {
                      "name": "DynamicSet",
                      "url": "/dynamic/set"
                     }
                   ]
                }
            ]
        },
        
        "children": [
            {
                "path": "manage",
                "name": "DynamicManage",
                "component": "/dynamic/manage",
                "meta": {
                    "title": "DynamicManage",
                    "isOnly": false,
                    "auth": [],
                    "keepAlive": true,
                    "pagePermission": [
                        {
                            "title": "DynamicManage",
                            "index": 0,
                            "auth": [
                                "view",
                                "add",
                                "edit",
                                "del",
                                "outport"
                            ]
                        }
                    ]
                }
            },
            {
                "path": "comment",
                "name": "CommentManage",
                "component": "/dynamic/comment",
                "meta": {
                    "title": "DynamicManage",
                    "isOnly": false,
                    "auth": [],
                    "keepAlive": true,
                    "pagePermission": [
                        {
                            "title": "CommentManage",
                            "index": 0,
                            "auth": [
                                "view",
                                "add",
                                "edit",
                                "del",
                                "outport"
                            ]
                        }
                    ]
                }
            },
           
            {
                "path": "editOrdinary",
                "name": "EditOrdinary",
                "component": "/dynamic/addOrdinary",
                "meta": {
                    "title": "DynamicManage",
                    "isOnly": false,
                    "auth": [],
                    "pagePermission": [
                        {
                            "title": "EditOrdinary",
                            "index": 0,
                            "auth": [
                                "view",
                                "add",
                                "edit",
                                "del",
                                "outport"
                            ]
                        }
                    ]
                }
            },
            {
                "path": "editLink",
                "name": "EditLink",
                "component": "/dynamic/addLink",
                "meta": {
                    "title": "DynamicManage",
                    "isOnly": false,
                    "auth": [],
                    "pagePermission": [
                        {
                            "title": "EditLink",
                            "index": 0,
                            "auth": [
                                "view",
                                "add",
                                "edit",
                                "del",
                                "outport"
                            ]
                        }
                    ]
                }
            },
            {
                "path": "editVideo",
                "name": "EditVideo",
                "component": "/dynamic/addVideo",
                "meta": {
                    "title": "DynamicManage",
                    "isOnly": false,
                    "auth": [],
                    "pagePermission": [
                        {
                            "title": "EditVideo",
                            "index": 0,
                            "auth": [
                                "view",
                                "add",
                                "edit",
                                "del",
                                "outport"
                            ]
                        }
                    ]
                }
            },
            {
                "path":"classify",
                "name":"DynamicClassify",
                "component":"/dynamic/classify",
                "meta":{
                    "title":"DynamicManage",
                    "isOnly":false,
                    "auth":[
                    ],
                    "keepAlive":true,
                    "pagePermission":[
                        {
                            "title":"DynamicClassify",
                            "index":0,
                            "auth":[
                                "view",
                                "add",
                                "edit",
                                "del",
                                "outport"]
                        }]
                }
            },
            {
                "path":"addClassify",
                "name":"DynamicClassifyAdd",
                "component":"/dynamic/addClassify",
                "meta":{
                    "title":"DynamicSet",
                    "isOnly":false,
                    "auth":[
                    ],
                    "pagePermission":[
                        {
                            "title":"DynamicClassifyAdd",
                            "index":0,
                            "auth":[
                                "view",
                                "add",
                                "edit",
                                "del",
                                "outport"
                            ]
                        }
                    ]
                }
            },
            {
                "path": "set",
                "name": "DynamicSet",
                "component": "/dynamic/set",
                "meta": {
                    "title": "DynamicManage",
                    "isOnly": false,
                    "auth": [],
                    "pagePermission": [{
                        "title": "DynamicManage",
                        "index": 0,
                        "auth": ["view", "add", "edit", "del", "outport"]
                    }]
                }
            }
            
        ]
    }

DYNAMIC;



return ['dynamic' => $dynamic];

